Skip to content
Permalink
Tree: ffdfad68ff
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (16 sloc) 565 Bytes
function onLoaded() {
var port = chrome.extension.connect({name:"DEVTOOLS-PORT"});
port.onMessage.addListener(function(msg) {
console.log('received : ' + msg.type);
// find injected script tag & focus in devtools
chrome.devtools.inspectedWindow.eval(
"inspect($$('head script[data-soak=main]')[0])",
function(result, isException) { }
);
});
// for console interface
chrome.experimental.devtools.console.onMessageAdded.addListener(function(msg) {
console.log('console catched - ' + msg);
});
}
window.onload = onLoaded;
You can’t perform that action at this time.